package main.java.com.mxl.javasource;

public class Main {
    public static void main(String[] args) {
        User user = new User();
        user.setId(1);
        user.setName("马1");

        User user2 = new User();
        user2.setId(1);
        user2.setName("马2");

        System.out.println("user.hashCode(): " + user.hashCode());
        System.out.println("user2.hashCode(): " + user2.hashCode());

        System.out.println("user.toString(): " + user.toString());
        System.out.println("user2.toString(): " + user2.toString());

        Class<? extends User> aClass = user.getClass();
        System.out.println(aClass);

        System.out.println("user.equals(user2): " + user.equals(user2));

    }
}
